import request from '@/utils/request'

/**
 * @param {获取微信账号信息} data 
 * @returns 
 */

export function getWeChatAccountInfo(data) {
  return request({
    url: '/tencent/account',
    method: 'post',
    data
  })
}

/**
 * @param {群搜索展示} data 
 * @returns 
 */

export function getAllSearchQunApi(data) {
  return request({
    url: '/search/tencent/groupkey_new',
    method: 'post',
    data
  })
}


/**
 * @param {搜索微信联系人} data 
 * @returns 
 */

export function getAllSearchApi(data) {
  return request({
    url: '/search/tencent/contactKey_new',
    method: 'post',
    data
  })
}


/**
 * @param {获取微信好友列表} data 
 * @returns 
 */

 export function getWeChatFriendList(data) {
  return request({
    url: '/tencent/contacts',
    method: 'post',
    data
  })
}

/**
 * @param {获取群组列表} data
 * @returns
 */

 export function getWeChatGroupList(data) {
  return request({
    url: '/tencent/group',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取公众号列表} data 
 * @returns 
 */

 export function getWeChatPublicList(data) {
  return request({
    url: '/tencent/official_account',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取好友聊天信息列表} data 
 * @returns 
 */

 export function getWeChatFriendMessageList(data) {
  return request({
    url: '/tencent/msg',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取群组聊天信息列表} data 
 * @returns 
 */

 export function getWeChatGroupMessageList(data) {
  return request({
    url: '/tencent/group',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {查看群成员列表} data 
 * @returns 
 */

export function getWeChatGroup_number(data) {
  return request({
    url: '/search/tencent/groupmember',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {搜索列表接} data 
 * @returns 
 */

export function searchFunction(data,url) {
  return request({
    url: url,
    method: 'post',
    data
  })
}

/**
 * 
 * @param {微信媒体列表} data 
 * @returns 
 */

export function getWxMediaInfo(data,url) {
  return request({
    url: url,
    method: 'post',
    data
  })
}

/**
 * 
 * @param {转码} data 
 * @returns 
 */

export function getFormateCode(data) {
  return request({
    url: '/convert_media_file',
    method: 'post',
    data
  })
}
/**
 * 
 * @param {朋友圈} data 
 * @returns 
 */

export function getWxFriendList(data) {
  return request({
    url: '/tencent/sns/list',
    method: 'post',
    data
  })
}
/**
 * 
 * @param {wx收藏} data 
 * @returns 
 */

export function getWxFavApi(data) {
  return request({
    url: '/tencent/fav/list',
    method: 'post',
    data
  })
}
